package org.hj.modules.generatecode.entity;

import java.io.Serializable;
import java.util.Date;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description: 视图模板表
 * @Author: gaobw
 * @Date:   2020-06-16
 * @Version: V1.0
 */
@Data
@TableName("view_module")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="view_module对象", description="视图模板表")
public class ViewModule {
    
	/**视图编号*/
	@TableId(type = IdType.UUID)
    @ApiModelProperty(value = "视图编号")
	private String id;
	/**视图名称*/
	@Excel(name = "视图名称", width = 15)
    @ApiModelProperty(value = "视图名称")
	private String viewName;
	/**视图描述*/
	@Excel(name = "视图描述", width = 15)
    @ApiModelProperty(value = "视图描述")
	private String viewComments;
	/**包名*/
	@Excel(name = "包名", width = 15)
    @ApiModelProperty(value = "包名")
	private String viewPacking;
	/**主表名称*/
	@Excel(name = "主表名称", width = 15)
    @ApiModelProperty(value = "主表名称")
	private String viewMaintable;
	/**布局列数*/
	@Excel(name = "布局列数", width = 15)
    @ApiModelProperty(value = "布局列数")
	private String viewMaincols;
	/**viewCreateuser*/
	@Excel(name = "viewCreateuser", width = 15)
    @ApiModelProperty(value = "viewCreateuser")
	private String viewCreateuser;
	/**viewCreatetime*/
	@Excel(name = "viewCreatetime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "viewCreatetime")
	private Date viewCreatetime;
	/**视图类型*/
	@Excel(name = "视图类型", width = 15)
    @ApiModelProperty(value = "视图类型")
	private String viewType;
	/**是否删除（0.未删除，1.已删除）*/
	@Excel(name = "是否删除", width = 15)
	@ApiModelProperty(value = "是否删除")
	private String viewDelFlag;
	/**是否下载（0.未下载，1.已下载）*/
	@Excel(name = "是否下载", width = 15)
	@ApiModelProperty(value = "是否下载")
	private String viewUploadFlag;
	/**主表关联明细表*/
	@Excel(name = "主表关联明细表", width = 15)
	@ApiModelProperty(value = "主表关联明细表")
	private String detailedTable;
}
